package com.aos.erp.message.mapper;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.message.model.MessageConfigInfo;
import com.aos.erp.message.model.vo.MessageConfigVo;
import org.apache.ibatis.annotations.Update;

public interface MessageConfigMapper extends SuperMapper<MessageConfigInfo>  {

    @Update("update t_message_config set update_time=now(),mc_key='${mcKey}',mc_value='${mcValue}',update_user='${optUser}' where id=#{id}")
    void updateConfig(MessageConfigVo dataInfo);

    @Update("update t_message_config set is_del=-1 where id=#{arg0}")
    void deleteConfig(long noticeId);
}
